#!/usr/bin/env python
#coding = utf-8
#Filename: initDB.py

import sqlite3

def initDB(db):
    con = sqlite3.connect(db)
    cur = con.cursor()
    cur.execute(""" create table if not exists movie(id INTEGER primary key AUTOINCREMENT,mname nchar(25) not null,mdate datetime,detail1 ntext,detail2 ntext)""")
    con.commit
    cur.close()
    con.close()
    
if __name__ == '__main__':
    initDB("movie.db") 
